<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${arcType.typeName }_JeeCms内容管理系统-宜春春宜人网络科技有限公司</title>
<META NAME="Author" CONTENT="Java爱好者">
<meta name="keywords"
    content="${arcType.keywords }" />
<meta name="description"
    content="${arcType.description }" />
<link rel="stylesheet"
    href="${pageContext.request.contextPath}/static/css/cms.css">
<script src="${pageContext.request.contextPath}/static/js/jQuery.js"></script>
</head>
<body>
    <jsp:include page="/common/head.jsp"></jsp:include>
    <jsp:include page="/common/menu.jsp"></jsp:include>

    <div class="content">
        <div class="w960">
            <div class="pLeft">
                <div class="data_list">
                <div class="dataHeader navi">${navCode }</div>
                <div class="datas article_type_list">
                    <ul>
                        <c:forEach var="article" items="${articlesOfPage }">
                            <li><a target="_blank" href="${pageContext.request.contextPath}/article/${article.id }.html" 
                            title="${article.title }">[<fmt:formatDate  
                            value="${article.publishDate }" pattern="MM-dd" />]&nbsp;&nbsp;
                            <font color="${article.titleColor }">${fn:substring(article.title,0,20) }</font></a>
                            </li>       
                        </c:forEach>
                    </ul>
                </div>
                </div>
                
                
                <div class="upAndDownPage">
                    ${pageCode }
                </div>
                
                
            </div>
            
            
            <!-- 上面是左边一块，这里是右边的一块 -->
            <div class="pRight">
                <div class="data_list">
                        <div class="dataHeader">
                        站长推荐<span class="more"><a href="${pageContext.request.contextPath}/arcType/1.html">更多...</a></span>
                    </div>
                    <div class="datas">
                        <ul>    
                        <c:forEach var="article" items="${RecommendArticleList }">
                         <li>[<fmt:formatDate value="${article.publishDate }" pattern="MM-dd"/>]&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/article/${article.id }.html"
                                title="${article.title }"><font color="${article.titleColor }">${fn:substring(article.title,0,10) }</font></a></li>
                         </c:forEach>       

                        </ul>
                    </div>
                </div>
                
                <div class="data_list">
                        <div class="dataHeader">
                        最近更新<span class="more"><a href="#">这里没有更多...</a></span>
                    </div>
                    <div class="datas">
                        <ul>
                         <c:forEach var="article" items="${articleNewstList }">
                         <li>[<fmt:formatDate value="${article.publishDate }" pattern="MM-dd"/>]&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/article/${article.id }.html"
                                title="${article.title }"><font color="${article.titleColor }">
                                <%-- ${fn:substring(article.title,0,10) } --%>
                                
                                <c:choose>  

								 <c:when test="${fn:length(article.title) > 10}">  
								
								   ${fn:substring(article.title, 0, 10)}...
								
								  </c:when>  
								
								<c:otherwise>  
								
								    ${article.title}
								
								</c:otherwise>  
								
								</c:choose>  
                                </font></a></li>
                         </c:forEach>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <jsp:include page="/common/foot.jsp"></jsp:include>
</body>
</html>
